package znbkTestPaperCtfd.save;

import android.util.Log;

import com.example.lancooznbk.service.HttpPostServer;
import com.lancoo.rxretrofitlibrary.Api.BaseApi;
import com.lancoo.rxretrofitlibrary.listener.HttpOnNextListener;
import com.trello.rxlifecycle.components.support.RxAppCompatActivity;

import retrofit2.Retrofit;
import rx.Observable;

/**
 * Created by Administrator on 2018\3\29 0029.
 */

public class SaveWrongTopicTutoringApi extends BaseApi {


    private SaveWrongTopicTutoringEntity mSaveWrongTopicTutoringEntity;

    public SaveWrongTopicTutoringEntity getmSaveWrongTopicTutoringEntity() {
        return mSaveWrongTopicTutoringEntity;
    }

    public void setmSaveWrongTopicTutoringEntity(SaveWrongTopicTutoringEntity mSaveWrongTopicTutoringEntity) {
        this.mSaveWrongTopicTutoringEntity = mSaveWrongTopicTutoringEntity;
    }


    public SaveWrongTopicTutoringApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
        super(listener, rxAppCompatActivity);
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostServer httpPostServer = retrofit.create(HttpPostServer.class);
        Log.e("==WrongEntity==",""+mSaveWrongTopicTutoringEntity);
        return httpPostServer.saveWrongTopicTutoringPaperEntity(mSaveWrongTopicTutoringEntity);
    }
}